<?php
/**
 *	Data Model of User Roles.
 *	@package		tools.BugTracker
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			01.11.2005
 *	@version		0.1
 */
/**
 *	Data Model of User Roles.
 *	@package		tools.BugTracker
 *	@extends		CMF_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			01.11.2005
 *	@version		0.1
 */
final class Model_RoleUser extends CMF_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int			$roleUserId		ID of User Role
	 *	@return		void
	 */
	public function __construct( $roleUserId = NULL )
	{
		$tableName	= "role_users";
		$fields	= array (
			"roleUserId",
			"roleId",
			"userId",
			'assigned'
		);
		$primaryKey	= $fields[0];
		$indices	= array( $fields[1], $fields[2] );
		parent::__construct( $tableName, $fields, $primaryKey, $$primaryKey );
		$this->setIndices ( $indices );
	}
}
?>